package com.jhgsys.internal.hazard.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;


/**
 *  Entity
 *
 * @author admin
 * @date 2024-08-20 15:49:12
 */
@Data
@TableName("hazard_examine_record")
public class HazardExamineRecord implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "examine_record_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String examineRecordId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 安全检查Id
     */
    @TableField("examine_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String examineId;

    /**
     * 安全检查对象Id
     */
    @TableField("examine_object_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String examineObjectId;

    /**
     * 安全检查内容
     */
    @TableField("hazard_examine_title")
    @NotBlank(message = "{required}")
    @Size(max = 800, message = "{noMoreThan}")
    private String hazardExamineTitle;

    /**
     * 隐患类型
     */
    @TableField("hazard_operation")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String hazardOperation;

    /**
     * 隐患等级;1：轻微隐患 2：一般隐患 3:重大隐患
     */
    @TableField("hazard_level")
    @Size(max = 2, message = "{noMoreThan}")
    private String hazardLevel;

    /**
     * 隐患位置Id
     */
    @TableField("area_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String areaId;

    /**
     * 隐患位置
     */
    @TableField("area_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String areaName;

    /**
     * 检查依据
     */
    @TableField("examine_evidence")
    @NotBlank(message = "{required}")
    @Size(max = 800, message = "{noMoreThan}")
    private String examineEvidence;

    /**
     * 项目Id
     */
    @TableField("project_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String projectId;

    /**
     * 项目名称
     */
    @TableField("project_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String projectName;

    /**
     * 责任部门Id
     */
    @TableField("leader_dept_id")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String leaderDeptId;

    /**
     * 责任部门
     */
    @TableField("leader_dept_name")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String leaderDeptName;

    /**
     * 责任人Id
     */
    @TableField("leader_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String leaderId;

    /**
     * 责任人姓名
     */
    @TableField("leader_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String leaderName;

    /**
     * 责任人工号
     */
    @TableField("leader_no")
    @NotBlank(message = "{required}")
    @Size(max = 64, message = "{noMoreThan}")
    private String leaderNo;

    /**
     * 问题描述
     */
    @TableField("question_description")
    @NotBlank(message = "{required}")
    @Size(max = 800, message = "{noMoreThan}")
    private String questionDescription;

    /**
     * 是否整改 0：无需整改 1：需整改
     */
    @TableField("rectification_flg")
    private String rectificationFlg ;

    /**
     * 整改期限
     */
    @TableField("rectification_deadline")
    @NotNull(message = "{required}")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date rectificationDeadline;

    /**
     * 整改要求
     */
    @TableField("rectification_require")
    @Size(max = 800, message = "{noMoreThan}")
    private String rectificationRequire;

    /**
     * 反馈内容
     */
    @TableField("feedback_content")
    @Size(max = 800, message = "{noMoreThan}")
    private String feedbackContent;

    /**
     * 反馈日期
     */
    @TableField("feedback_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date feedbackDate;

    /**
     * 审核用户Id
     */
    @TableField("audit_user_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String auditUserId;

    /**
     * 审核用户姓名
     */
    @TableField("audit_real_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String auditRealName;

    /**
     * 审核备注
     */
    @TableField("audit_remark")
    @Size(max = 800, message = "{noMoreThan}")
    private String auditRemark;

    /**
     * 审核时间
     */
    @TableField("audit_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date auditDate;

    /**
     * 状态;1：待整改指派 2：待整改 3：整改中 4：待审核 5：审核退回 6：审核通过
     */
    @TableField("status")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String status;

    /**
     * 记录用户Id
     */
    @TableField("record_user_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String recordUserId;

    /**
     * 记录用户姓名
     */
    @TableField("record_real_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String recordRealName;

    /**
     * 记录时间
     */
    @TableField("record_date")
    @NotNull(message = "{required}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date recordDate;

    /**
     * 新增人
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 新增时间
     */
    @TableField("created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 修改人
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 修改时间
     */
    @TableField("updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 删除人
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 删除时间
     */
    @TableField("deleted_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 删除标记
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;

}